package com.rd.teacher.jichao.day02;

// 外部类 outer class
public class OuterCls {

    private String prop = "outer";

    // 内部类
    class InnerCls{
        private String prop = "inner";
        private void info(){
            String prop = "local";
//            System.out.println(str);
            System.out.println(prop);
            System.out.println(this.prop);
            System.out.println(OuterCls.this.prop);

            class LocalCls{}
        }

        private void info1(){
            class LocalCls{}
        }
    }

    public void infoOuter(){
        new InnerCls().info();
    }

    public static void main(String[] args) {
        new OuterCls().infoOuter();
    }

}

